/*
 * @Description:
 * @Author: maskMan
 * @LastEditTime: 2024-03-20 17:45:38
 */
import { _decorator, Component, Vec3, v3 } from "cc";
import { utils } from "./utils/utils";
const { ccclass, property } = _decorator;
@ccclass("board")
export class board extends Component {
  index: number;
  start() {
    this.initData();
  }
  _tempPos = v3();
  initData() {
    this._tempPos.x = utils.getRandomInt(-2, 2) / 10;
    this._tempPos.y = (this.index - 3) * 3;
    this._tempPos.z = 2.5;
    this.node.setPosition(this._tempPos);
  }
}
